<%@ page language="java" contentType="text/html; charset=UTF-8"    pageEncoding="UTF-8"%>

<%@ page import="web_pro.*"%>

<% String Vid=request.getParameter("SPid"); 
System.out.println(request.getParameter("SPid"));%> 
 
<jsp:useBean id="sp_edit" scope="page" class="web_pro.sp_edit"> </jsp:useBean>  
<jsp:setProperty  name="sp_edit" property="id"   value="<%=Integer.parseInt(Vid) %>"/> 


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>

<body>

	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="#">首页</a></li>
    <li><a href="#">表单</a></li>
    </ul>
    </div>
    
    <div class="formbody">
    
    <div class="formtitle"><span>基本信息</span></div>
    <form action="../sp_editok" method="post">
	    <ul class="forminfo">
	        <input name="id" type="text" value="<%=sp_edit.getId() %>">
		    <li><label>商品名称</label><input name="name" type="text" value="<%=sp_edit.getname()%>" class="dfinput" /><i>标题不能超过30个字符</i></li>
		    <li><label>分类</label><input name="keyword" type="text" class="dfinput" value="<%=sp_edit.getkeyword()%>" /><i>多个关键字用,隔开</i></li>
		    <li><label>价格</label><input name="jiage" type="text" class="dfinput" value="<%=sp_edit.getjiage()%>" /></li>
		    <li><label>库存</label><input name="kucun" type="text" class="dfinput" value="<%=sp_edit.getkucun()%>" /></li>
		    <li><label>&nbsp;</label><input name="" type="submit" class="btn" value="确认保存"/></li>
	    </ul>
    </form>
    
    </div>
</body>
</html>
